package com.ruoyi.supervise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supervise.mapper.CrCheckfileopinionMapper;
import com.ruoyi.supervise.domain.CrCheckfileopinion;
import com.ruoyi.supervise.service.ICrCheckfileopinionService;
import com.ruoyi.common.core.text.Convert;

/**
 * 附件审核意见信息Service业务层处理
 * 
 * @author wtj
 * @date 2019-10-15
 */
@Service
public class CrCheckfileopinionServiceImpl implements ICrCheckfileopinionService 
{
    @Autowired
    private CrCheckfileopinionMapper crCheckfileopinionMapper;

    /**
     * 查询附件审核意见信息
     * 
     * @param checkid 附件审核意见信息ID
     * @return 附件审核意见信息
     */
    @Override
    public CrCheckfileopinion selectCrCheckfileopinionById(String checkid)
    {
        return crCheckfileopinionMapper.selectCrCheckfileopinionById(checkid);
    }

    /**
     * 查询附件审核意见信息列表
     * 
     * @param crCheckfileopinion 附件审核意见信息
     * @return 附件审核意见信息
     */
    @Override
    public List<CrCheckfileopinion> selectCrCheckfileopinionList(CrCheckfileopinion crCheckfileopinion)
    {
        return crCheckfileopinionMapper.selectCrCheckfileopinionList(crCheckfileopinion);
    }

    /**
     * 新增附件审核意见信息
     * 
     * @param crCheckfileopinion 附件审核意见信息
     * @return 结果
     */
    @Override
    public int insertCrCheckfileopinion(CrCheckfileopinion crCheckfileopinion)
    {
        return crCheckfileopinionMapper.insertCrCheckfileopinion(crCheckfileopinion);
    }

    /**
     * 修改附件审核意见信息
     * 
     * @param crCheckfileopinion 附件审核意见信息
     * @return 结果
     */
    @Override
    public int updateCrCheckfileopinion(CrCheckfileopinion crCheckfileopinion)
    {
        return crCheckfileopinionMapper.updateCrCheckfileopinion(crCheckfileopinion);
    }

    /**
     * 删除附件审核意见信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCrCheckfileopinionByIds(String ids)
    {
        return crCheckfileopinionMapper.deleteCrCheckfileopinionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除附件审核意见信息信息
     * 
     * @param checkid 附件审核意见信息ID
     * @return 结果
     */
    public int deleteCrCheckfileopinionById(String checkid)
    {
        return crCheckfileopinionMapper.deleteCrCheckfileopinionById(checkid);
    }
}
